import 'package:FiduMart/generated/json/base/json_convert_content.dart';
import 'package:FiduMart/core/network/model/nft_exchange_response_entity.dart';

NftExchangeResponseEntity $NftExchangeResponseEntityFromJson(
    Map<String, dynamic> json) {
  final NftExchangeResponseEntity nftExchangeResponseEntity = NftExchangeResponseEntity();
  final String? drnAmount = jsonConvert.convert<String>(json['drnAmount']);
  if (drnAmount != null) {
    nftExchangeResponseEntity.drnAmount = drnAmount;
  }
  return nftExchangeResponseEntity;
}

Map<String, dynamic> $NftExchangeResponseEntityToJson(
    NftExchangeResponseEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['drnAmount'] = entity.drnAmount;
  return data;
}

extension NftExchangeResponseEntityExt on NftExchangeResponseEntity {
  NftExchangeResponseEntity copyWith({
    String? drnAmount,
  }) {
    return NftExchangeResponseEntity()
      ..drnAmount = drnAmount ?? this.drnAmount;
  }
}